import { observable, action, computed } from 'mobx'
class Store {
  constructor () {
    this.changeBannerList = this.changeBannerList.bind(this)
    this.changeProList = this.changeProList.bind(this)
  }
  // 初始化状态
  @observable bannerList = []
  @observable proList = []

  @computed bannerLen () {
    return this.bannerList.lenth
  }
  @action changeBannerList (payload) {
    console.log('111', payload)
    this.bannerList = payload
    console.log('222', this.bannerList)
  }
  @action changeProList (payload) {
    this.proList = payload
  }

}

export default new Store()